﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Site1.Master" AutoEventWireup="true" CodeBehind="FamilySearchData.aspx.cs" Inherits="ES_Project.Pages.WebForm18" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 100%;
        }
        .style3
        {
            width: 178px;
        }
        .style4
        {
            width: 178px;
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table cellpadding="0" cellspacing="0" class="style2">
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="0" class="style2">
                            <tr>
                                <td class="style3">
                                    &nbsp;</td>
                                <td>
                                    <asp:ScriptManager ID="ScriptManager1" runat="server" 
                                        EnablePageMethods="true" />
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style3">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;
                                    <asp:Label ID="RegisDate" runat="server" style="display:none"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style4">
                                    <asp:Label ID="Label2" runat="server" style="display:none"></asp:Label>
                                    <asp:Label ID="Label1" runat="server" Enabled="False" style="font-weight: 700"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="family_code" runat="server" style="font-weight: 700"></asp:Label>
                                    &nbsp;
                                    <asp:Label ID="FamilyName" runat="server" style="font-weight: 700"></asp:Label>
                                    <asp:Label ID="st_code" runat="server" style="display:none"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <table cellpadding="0" cellspacing="0" class="style2">
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                        border="1" CellPadding="4" ForeColor="#333333" GridLines="None" 
                                        onrowdatabound="GridView1_RowDataBound" Width="100%">
                                        <AlternatingRowStyle BackColor="White" />
                                        <Columns>
                                            <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                                                <HeaderTemplate>
                                                    ลำดับ
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <%#Container.DataItemIndex+1 %>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="รหัสนักเรียน">
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="st_code" runat="server" Text='<%# Eval("st_code") %>'></asp:HyperLink>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="center" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="ชื่อนักเรียน">
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="st_name" runat="server" Text='<%# Eval("st_name") %>'></asp:HyperLink>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="left" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="วันที่สมัครเรียน">
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="register_date" runat="server" 
                                                        Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("register_date")) %>'></asp:HyperLink>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="center" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="วันที่เลิกเรียน">
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="st_end_date" runat="server" 
                                                        Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("st_end_date")) %>'></asp:HyperLink>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="center" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="st_id" Visible="False">
                                             <ItemTemplate>
                                                    <asp:HyperLink ID="st_id" runat="server" Text='<%# Eval("st_id") %>'></asp:HyperLink>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="center" />
                                                <ItemStyle HorizontalAlign="left" />
                                            
                                            </asp:TemplateField>
                                        </Columns>
                                        <EditRowStyle BackColor="#2461BF" />
                                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EFF3FB" />
                                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                    </asp:GridView>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
     <script type="text/javascript">
         function openW(a) {


             var value1 = a
             emailwindow = dhtmlmodal.open('EmailBox', 'iframe', value1, '', 'width=1350px,height=535px,center=1,resize=0,scrolling=0')

             emailwindow.onclose = function () {
                 return true
             }


         }
        
</script>

</asp:Content>
